package com.cucn.mms.dao;

import com.cucn.mms.domain.MediaManageDO;
import com.cucn.mms.domain.MmsMediaInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.poi.ss.formula.functions.Offset;

import java.util.List;

/**
* @author 执念
* @description 针对表【mms_media_info】的数据库操作Mapper
* @createDate 2023-04-24 18:58:50
* @Entity com.cucn.mms.domain.MmsMediaInfo
*/

@Mapper
public interface MediaManageMapper {

    boolean deleteMediaById(String mediaId);

    boolean updateMedia(MediaManageDO mediaManageDO);


    boolean addMedia(
            @Param("mediaName") String mediaName,
            @Param("mediaCategory") Integer mediaCategory,
            @Param("mediaGrade") Integer mediaGrade,
            @Param("mediaUrl") String mediaUrl);

    int getTotal();

    List<MediaManageDO> selectMediaByType(@Param("keyword") String keyword,
                                          @Param("searchType") String searchType,
                                          @Param("offset") int offset,
                                          @Param("limit") int limit);
}




